﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.DtoModel.SystemManager;
using SystemCenterSoa.PoModel.SystemManager;

namespace SystemCenterSoa.IRepository.SystemManager
{
    public interface IRoleRepository
    {
        RoleDto GetRoleViewById(int roleId);
        PagerResult<RolePo> SearchPage(SearchModel searchModel);
        int RoleDbAdd(RoleDto view);

        bool RoleUpdate(RoleDto view);

        List<RolePo> GetRoleDbsByUserName(string userName);
    }
}
